<?php

namespace App\Model;

class BillModel extends BaseModel
{
    protected $table = 'bill';
    protected $primaryKey = 'bill_id';

    protected $fillable = [
        'user_id',
        'pm',
        'type',
        'num',
        'title',
        'json_data',
        'status',
        'relation_id',
        'from_user_id',
    ];

    public function userInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UsersModel::class,'user_id','user_id');
    }
}
